ibs
Class SessionCookie

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by ibs.SessionCookie
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class SessionCookie
extends javax.servlet.http.HttpServlet

Servlet implementation class for Servlet:checks the invalid password entered by the user for thrice succession.

See Also:
Serialized Form

Constructor Summary
SessionCookie()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doGet : It internally calls the dopost method
 void doPost(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
          doPost : It checks whether the same user enters the password or other user
 
Methods inherited from class javax.servlet.http.HttpServlet
service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionCookie

public SessionCookie()
Method Detail

doGet

public void doGet(javax.servlet.http.HttpServletRequest req,
                  javax.servlet.http.HttpServletResponse res)
           throws java.io.IOException,
                  javax.servlet.ServletException
doGet : It internally calls the dopost method

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
req - : Request carries the password which is entered by the user
res - : Response tells to the user and says that either invalid password or your account is going to be locked or your account is locked or your account is already locked
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
HttpServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)

doPost

public void doPost(javax.servlet.http.HttpServletRequest req,
                   javax.servlet.http.HttpServletResponse res)
            throws java.io.IOException,
                   javax.servlet.ServletException
doPost : It checks whether the same user enters the password or other user

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
req - : Request carries the password which is entered by the user
res - : Response tells to the user and says that either invalid password or your account is going to be locked or your account is locked or your account is already locked
Throws:
java.io.IOException
javax.servlet.ServletException
See Also:
HttpServlet.doPost(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)